<template>
    <div class="outer">
        <van-button round block type="danger" color="linear-gradient(to right, #ff8030, #FFC0CB)"
            @click="logout">退出登录</van-button>
    </div>
</template>
<script setup>
import router from '@/router'
function logout() {
    localStorage.clear();
    router.push('/login');
}
</script>
<style lang="scss" scoped>
.outer {
    margin: 50px auto;
}
</style>